﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using Domain;

namespace BusinessTier.DataContext
{
    public class SimplyData : DbContext
    {
        public DbSet<ProductType> ProductTypes { get; set; }
        public DbSet<ProductPrice> ProductPrices { get; set; }
        public DbSet<PrintMedia> PrintMedias { get; set; }
        public DbSet<PrintMediaType> PrintMediaTypes { get; set; }
        public DbSet<AspNetUser> AspNetUsers { get; set; }
        
        public DbSet<Style> Styles { get; set; }
        public DbSet<Industry> Industries { get; set; }
        public DbSet<Tag> Tags { get; set; }
        public DbSet<ColorTheme> ColorThemes { get; set; }
        public DbSet<Font> Fonts { get; set; }

        public DbSet<NewsItem> NewsItems { get; set; }
        public DbSet<SpecialOffer> SpecialOffers { get; set; }
        public DbSet<FormFactor> FormFactors { get; set; }
        
        public DbSet<PrinterCounter> PrinterCounters { get; set; }
        public DbSet<Customer> Customers { get; set; }
        


        protected override void OnModelCreating(System.Data.Entity.ModelConfiguration.ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<AspNetUser>().ToTable("aspnet_Users");
            base.OnModelCreating(modelBuilder);
        }

        
    }
}
